package com.lc.luzhengtang.activity;

import android.os.Bundle;
import android.util.Log;

import com.lc.luzhengtang.BaseApplication;
import com.lc.luzhengtang.R;
import com.lc.luzhengtang.base.BaseActivity;
import com.lc.luzhengtang.bean.BuyRightnow;
import com.lc.luzhengtang.conn.ConnBuyNow;
import com.lc.luzhengtang.event.EventBus;
import com.zcx.helper.http.AsyCallBack;

import butterknife.ButterKnife;


/**
 * Created by Administrator on 2017/6/12.
 */
public class ConfirmOrderActivity4 extends BaseActivity {

    String ids;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_confirmorder);
        EventBus.getInstance().register(this);
        ButterKnife.bind(this);

        ids = getIntent().getStringExtra("cart_id");

        getOrderData();
    }

    public void getOrderData() {
        Log.d(getIntent().getStringExtra("cart_id"),"333333333333333333");
        Log.d(getIntent().getStringExtra("num"),"333333333333333333");
        Log.d(getIntent().getStringExtra("he"),"333333333333333333");
        Log.d(getIntent().getStringExtra("cart_id"),"333333333333333333");
        Log.d(getIntent().getStringExtra("num"),"333333333333333333");
        Log.d(getIntent().getStringExtra("he"),"333333333333333333");
        new ConnBuyNow(BaseApplication.basePreferences.readUid(), getIntent().getStringExtra("cart_id"), "1", "盒", new AsyCallBack<BuyRightnow>() {
            @Override
            public void onStart(int type) throws Exception {
                super.onStart(type);
            }

            @Override
            public void onSuccess(String toast, int type, Object o, final BuyRightnow buyRightnow) throws Exception {
                super.onSuccess(toast, type, o, buyRightnow);
//

            }

            @Override
            public void onFail(String toast, int type) throws Exception {
                super.onFail(toast, type);
            }

            @Override
            public void onEnd(String toast, int type) throws Exception {
                super.onEnd(toast, type);
            }
        }


        ).execute(ConfirmOrderActivity4.this, false);
    }





}
